# range(start, end, step)
print(list(range(10)))  # end
print(list(range(1, 10)))  # start,end
print(list(range(1, 10, 3)))  # start,end,step

for i in range(3):
    print('hello')  # 循环输出

# 水仙花数：三位数，每一位数字的立方和 = 三位数本身
# 123   1^3+2^3+3^3 = 123
for i in range(100, 1000):
    # ge = i % 10
    # shi = i // 10 % 10
    # bai = i // 100
    str1 = str(i)
    ge = int(str1[2])
    shi = int(str1[1])
    bai = int(str1[0])
    if ge ** 3 + shi ** 3 + bai ** 3 == i:
        print(i, end=' ')

